/**
 * 
 */
package com.lvan.bean;

/**
 * @author Stern He<br>
 * 2013-9-12<br>
 * @version 1.0.0.0 
 */
public class UserException extends Exception{
    private static final long serialVersionUID = -4575680670057737025L;
    public static final String NO_USER = "001";
    public static final String PWD_ERROR = "002";
    public static final String USER_LOCKED = "003";
    public static final String USER_UNDEFINED = "004";
    public static final String USERNAME_REQUIRED = "005";
    private String errorCode;
    private String message;
    public UserException() {
    }
    public UserException(String errorCode,String message) {
        this.errorCode = errorCode;
        this.message = message;
    }
    @Override
    public String getMessage() {
        return message;
    }
    public String getErrorCode() {
        return errorCode;
    }
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    
}
